package com.heatup.apt.api.service;

import com.heatup.apt.common.exception.OrderNotFoundException;
import com.heatup.apt.model.api.ApiResultModel;
import com.heatup.apt.model.user.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by b3st9u on 16/8/29.
 */
public interface MyBooksService {

    List<Map<String, Object>> getMyBooks(int orderStatus, int serviceType, int userId, Integer campType) throws OrderNotFoundException;

    int getMyBooksCount(int orderStatus, int serviceType, int userId, Integer campType);

    /**
     * 获取订单详情
     *
     * @param orderId
     * @param userId
     * @return
     */
    Map<String, Object> getMyBookDetail(int orderId, int userId) throws OrderNotFoundException;
    /**
     * 获取订单详情
     *
     * @param orderId
     * @param userId
     * @return
     */
    Map<String, Object> orderDetail(int orderId, int userId) throws OrderNotFoundException;
    
    /**
     * 获取团课的订单详情
     * @param orderStatus
     * @param serviceType
     * @param userId
     * @return
     */
    List<Map<String, Object>> getTeamCourseCount(int orderStatus, int serviceType, int userId);
    
    /**
     * 获取签名
     * @param URL
     * @param invalid
     * @return
     */
    ApiResultModel getSing(String URL ,String invalid);
    
    /**
     * 获取用户私教咨询订单列表
     * @param userId
     * @return
     */
    Map<String,Object> queryUserPrivateConsultOrderDetailListByUserId(Integer userId);
    
    Map<String,Object> queryYeadCardOrderDetail(Integer orderId, Integer userId);

    /**
     *@Author: timo
     *@Date: 2018/3/26 16:07
     *@Description:
     * 获取私教开单详情
     *
     */
    ApiResultModel queryPtCoachOpenBillingOrderDetail(Integer orderId, Integer type, UserInfo userInfo);

    /**
     *@Author: timo
     *@Date: 2018/4/3 11:44
     *@Description:
     * 查询私教订单得进店二维码
     *
     */
    ApiResultModel updatePtCourseAccessQRCode(UserInfo userInfo, Integer orderId) throws OrderNotFoundException;
}
